import request from '@/utils/request'

// 获取所有标签
export function getTagList() {
  return request({
    url: '/v1/admin/tag',
    method: 'get'
  })
}

// 删除指定标签
export function delTag(params) {
  return request({
    url: '/v1/admin/tag',
    method: 'delete',
    params: {
      Id: params
    }
  })
}

// 添加标签
export function addTag(params) {
  return request({
    url: '/v1/admin/tag',
    method: 'post',
    params: {
      Title: params
    }
  })
}
